package com.cjh.feign;

import com.cjh.entity.Person;
import com.cjh.feign.impl.FeignError;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author cjh
 * @date 2021/3/26 17:22
 */
@org.springframework.cloud.openfeign.FeignClient(value = "provider-8010",fallback = FeignError.class)
public interface FeignClient {

    @GetMapping("/person/getPort")
    public String getPort();

    @GetMapping("/person/list")
    public List<Person> list();
}
